package com.smallkingson.ylib.view.adapter;

import android.support.v7.widget.RecyclerView;
import android.util.Pair;
import android.util.SparseArray;
import android.view.View;
import android.view.ViewGroup;

/**
 * Created by yorun on 2017/1/12.
 */

//public abstract class YMultiTypeAdapter extends RecyclerView.Adapter<YMultiTypeHolder> {
//
//    @Override
//    public YMultiTypeHolder onCreateViewHolder(ViewGroup parent, int viewType) {
//        View itemView = View.inflate(parent.getContext(),viewType,null);
//        return new YMultiTypeHolder(itemView);
//    }
//    @Override
//    public void onBindViewHolder(YMultiTypeHolder holder, int position) {
//        holder.setUp(position);
//    }
//    @Override
//    public int getItemViewType(int position) {
////        SparseArray<Pair<Integer, YMultiTypeHolder>> pairSparseArray = mapLayoutResHolder();
//        return mapLayoutResHolder().get(position).first;
//    }
//    public abstract SparseArray<Pair<Integer,YMultiTypeHolder>> mapLayoutResHolder();
//
////    public abstract Pair<Integer,YMultiTypeHolder> mapLayoutResHolder(int position);
//}
